<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="common/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="common/css/loading.css" />
		<script src="common/js/av-min-2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			* {
				margin: 0px;
				padding: 0px;
			}
			
			body {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				background-color: #F3F5F7;
				font-family: "微软雅黑";
			}
			
			.header {
				height: 45px;
				line-height: 45px;
				background: #F4F4F4;
				color: #616161;
				font-size: 18px;
				border-bottom: 1px solid gainsboro;
				text-align: center;
			}
			
			.header .icon {
				width: 20px;
				position: absolute;
				left: 10px;
			}
			
			.products {
				display: -webkit-box;
				overflow: hidden;
				padding-left: 15px;
			}
			
			.products .item img {
				width: 50px;
				height: 50px;
				display: block;
				margin-top: 8px;
			}
			
			.products .item {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				height: 70px;
				font-size: 12px;
				margin-right: 8px;
			}
			
			.products .item .num {
				display: -webkit-box;
				-webkit-box-align: center;
				-webkit-box-pack: center;
			}
			
			.products .hidden {
				display: -webkit-box;
				-webkit-box-flex: 1;
				-webkit-box-align: center;
				-webkit-box-pack: end;
				margin-right: 20px;
				font-size: 14px;
			}
			
			.products .hidden .icon {
				width: 20px;
				height: 4px;
				background-size: contain;
				background-image: url(img/shenglv.png);
			}
			
			.list {
				margin-top: 10px;
				display: -webkit-box;
				height: 45px;
				line-height: 45px;
				width: 100%;
				-webkit-box-align: center;
				background-color: white;
				margin-bottom: 2px;
			}
			
			.list .listPic {
				display: -webkit-box;
				width: 20px;
				height: 20px;
				margin-left: 10px;
			}
			
			.list .listPic img {
				display: block;
				width: 100%;
			}
			
			.list .listTitle {
				display: -webkit-box;
				font-size: 14px;
				margin-left: 15px;
				color: #666666;
			}
			
			.list .listContent {
				display: -webkit-box;
				font-size: 12px;
				color: #666666;
				-webkit-box-flex: 1;
				-webkit-box-pack: end;
				margin-right: 5px;
				color: #848689;
			}
			
			.list .listIcon {
				display: -webkit-box;
				font-size: 14px;
				margin-right: 10px;
				color: #848689;
			}
			
			.content {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				background-color: white;
				padding: 0px 5px 5px 5px;
				border-bottom: 1px solid gainsboro;
			}
			
			.total {
				display: -webkit-box;
				-webkit-box-align: center;
				-webkit-box-pack: end;
				margin-right: 10px;
				font-size: 14px;
				color: #F23030;
			}
			
			.total>div {
				display: -webkit-box;
			}
		</style>
	</head>

	<body ontouchstart>
		<div class="csshub-loading" v-if="isLoading">
			<span></span>
			<span></span>
			<span></span>
			<span></span>
		</div>
		<div v-if="!isLoading">
			<div class="header">
				<i class="icon Hui-iconfont" @click="my">&#xe6d4;</i>我的订单
			</div>
			<div class="list">
				<div class="listPic"><img src="img/57147ba3Ne2fccde3.png" /></div>
				<div class="listTitle">未完成订单</div>
				<div class="listContent"></div>
				<div class="listIcon icon Hui-iconfont">&#xe6d7;</div>
			</div>
			<div class="content" v-for="item in notpayed">
				<div class="products">
					<div class="item" v-for="img in item.attributes.img" track-by="$index">
						<img v-bind:src="img" />
					</div>
					<div class="hidden" v-if="item.attributes.pid.length>3">
						<div class="icon"></div>
					</div>
					<div class="hidden">
						共
						<div v-html="item.attributes.num"></div>件
					</div>
				</div>
				<div class="total">
					<div>￥</div>
					<div v-html="item.attributes.price"></div>
				</div>
			</div>
			<div class="list">
				<div class="listPic"><img src="img/57147ba3Ne2fccde3.png" /></div>
				<div class="listTitle">已完成订单</div>
				<div class="listContent"></div>
				<div class="listIcon icon Hui-iconfont">&#xe6d7;</div>
			</div>
			<div class="content" v-for="item in payed">
				<div class="products">
					<div class="item" v-for="img in item.attributes.img" track-by="$index">
						<img v-bind:src="img" />
					</div>
					<div class="hidden" v-if="item.attributes.pid.length>3">
						<div class="icon"></div>
					</div>
					<div class="hidden">
						共
						<div v-html="item.attributes.num"></div>件
					</div>
				</div>
				<div class="total">
					<div>￥</div>
					<div v-html="item.attributes.price"></div>
				</div>
			</div>
		</div>
		<script src="common/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="common/js/fastclick.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				FastClick.attach(document.body);
			});
		</script>
		<script src="vue/orderVue.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>